<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h1 :name="prop.name" :age="prop.age " :sex="prop.sex">{{msg}}</h1>
        <!-- 
        简洁的批量传递 直接把需要展开传递给模板属性的对象 交给v-bind属性即可
        批量传递不要书写简写
       -->
        <h1 v-bind="prop">{{msg}}</h1>
    </div>

    <script>
        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    msg: "htmlElenent",
                    prop: {
                        name: "diahdh",
                        age: 11,
                        sex: "nan"
                    }
                }
            }
        })
    </script>
</body>

</html>